import instance from 'utils/request';


export function getListApi(params: any) {
  return instance.get('/whitelist/filter/', { params });
}

export function updateStatusApi(id: number|string,body: any) {
  return instance.patch(`/whitelist/${id}/`,{status:!body.status});
}